home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
PROGRAMR
/
WTJ208.ZIP
/
FRANTZ
/
CPP
/
CTARGET.CPP
next >
Wrap
C/C++ Source or Header
|
1993-04-11
|
2KB
|
88 lines
// target.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "ctarget.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTargetApp
BEGIN_MESSAGE_MAP(CTargetApp, CWinApp)
//{{AFX_MSG_MAP(CTargetApp)
//}}AFX_MSG_MAP
// Standard file based document commands
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTargetApp construction
CTargetApp::CTargetApp()
{
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CTargetApp object
CTargetApp NEAR theApp;
/////////////////////////////////////////////////////////////////////////////
// CTargetApp initialization
BOOL CTargetApp::InitInstance()
{
SetDialogBkColor(); // set dialog background color to gray
EnableVBX(); // Initialize VBX support
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CTargetApp override the run method
int CTargetApp::Run()
{
CDlg dlg;
dlg.DoModal(); // Our main window is a dialog box
return 0;
}
/////////////////////////////////////////////////////////////////////////////
// VB-Event registration
// (calls to AfxRegisterVBEvent will be placed here by ClassWizard)
//{{AFX_VBX_REGISTER_MAP()
//}}AFX_VBX_REGISTER_MAP
/////////////////////////////////////////////////////////////////////////////
// CTargetApp commands
/////////////////////////////////////////////////////////////////////////////
// CDlg dialog
CDlg::CDlg(CWnd* pParent /*=NULL*/)
: CDialog(CDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlg)
m_target = NULL;
//}}AFX_DATA_INIT
}
void CDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlg)
DDX_VBControl(pDX, Target, m_target);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlg, CDialog)
//{{AFX_MSG_MAP(CDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlg message handlers